<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head th:replace="/common/template :: header(~{::title},~{::link},~{::style})">
</head>
<body>
    <div class="layui-form timo-compile">
    <form th:action="@{/delivery/deliveryInfo/save}">
        <input type="hidden" name="id" th:if="${deliveryInfo}" th:value="${deliveryInfo.id}">
        <div class="layui-form-item">
            <label class="layui-form-label">快递公司</label>
            <div class="layui-input-inline">
                <input class="layui-input" type="text" name="delivery_company" placeholder="请输入快递公司" th:value="${deliveryInfo?.delivery_company}">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">负责人名字</label>
            <div class="layui-input-inline">
                <input class="layui-input" type="text" name="delivery_person" placeholder="请输入负责人名字" th:value="${deliveryInfo?.delivery_person}">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">负责人电话</label>
            <div class="layui-input-inline">
                <input class="layui-input" type="text" name="delivery_phone" placeholder="请输入负责人电话" th:value="${deliveryInfo?.delivery_phone}">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">快递点地址</label>
            <div class="layui-input-inline">
                <input class="layui-input" type="text" name="delivery_place" placeholder="请输入快递点地址" th:value="${deliveryInfo?.delivery_place}">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">网格ID</label>
            <div class="layui-input-inline">
<!--                <input class="layui-input" type="text" name="grid_id" placeholder="请输入网格ID" >-->
<!--                // 渲染-->
                <select name="grid_id" th:value="${deliveryInfo?.grid_id}" lay-filter="aihao">
                    <option value=""></option>
                    <option value="0">网格1</option>
                    <option value="1">网格2</option>
                    <option value="2">网格3</option>
                    <option value="3">网格4</option>
                    <option value="4">网格5</option>
                </select>
            </div>
        </div>
        <div class="layui-form-item layui-form-text">
            <label class="layui-form-label">备注</label>
            <div class="layui-input-block">
                <textarea placeholder="请输入内容" class="layui-textarea" name="remark">[[${deliveryInfo?.remark}]]</textarea>
            </div>
        </div>
        <div class="layui-form-item timo-finally">
            <button class="layui-btn ajax-submit"><i class="fa fa-check-circle"></i> 保存</button>
            <button class="layui-btn btn-secondary close-popup"><i class="fa fa-times-circle"></i> 关闭</button>
        </div>
    </form>
</div>
<script th:replace="/common/template :: script"></script>
</body>
</html>